package com.beta.resource.model;

public class Page {
    private boolean isDisabled = false;
    private boolean isActive = false;
    private String mDesc = null;
    private int mStart = 0;
    private int mIndex = 0;

    public Page(String desc){
        mDesc = desc;
    }

    public Page setIndexNum(int num){
        mIndex = num;
        return this;
    }

    public int getIndex(){
        return mIndex;
    }

    public Page setStartNum(int num){
        mStart = num;
        return this;
    }

    public int getStart(){
        return mStart;
    }

    public Page setDisabled(boolean disabled){
        isDisabled = disabled;
        return this;
    }

    public Page setActive(boolean active){
        isActive = active;
        return this;
    }

    public boolean getDisabled(){
        return isDisabled;
    }

    public boolean getActive(){
        return isActive;
    }

    public String getDesc(){
        return mDesc;
    }

    public String getAppendflag(){
        String flag = "";
        if(isDisabled){
            flag = "disabled";
        }
        if(isActive){
            flag += " active";
        }
        return flag;
    }
}
